package com.vca.common.response.sf;

import com.alibaba.fastjson.JSONObject;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="ResponseCancel对象", description="顺丰返回对象")
public class ExpressResponse implements Serializable {

    private static final long serialVersionUID = -6378552213850935354L;

    @ApiModelProperty(value = "true 请求成功，false 请求失败")
    private Boolean success;

    @ApiModelProperty(value = "错误描述")
    private String errorMessage;

    @ApiModelProperty(value = "错误编码，S0000成功")
    private String errorCode;

    @ApiModelProperty(value = "发送请求中的ID,原封不动返回，使客户系统能识别出哪个请求对应的响应")
    private String requestId;

    @ApiModelProperty(value = "返回的详细数据")
    private JSONObject obj;
}
